package com.example.ticketingserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 *
 * @TableName user
 */
@Schema(description = "用户信息")
@TableName(value ="user")
@Data
public class User implements Serializable {
    /**
     * 用户id
     */
    @TableId(type = IdType.AUTO)
    @Schema(description = "用户id")
    private Integer id;
    /**
     * 用户名
     */
    @Schema(description = "用户名称")
    private String username;
    /**
     * 密码
     */
    @Schema(description = "用户密码")
    private String password;
    /**
     * 性别 1男 2女
     */
    @Schema(description = "用户性别 1男 2女")
    private Integer sex;
    /**
     * 状态 0-正常 1-禁用
     */
    @Schema(description = "用户状态 0-正常 1-禁用")
    private Integer status;
    /**
     * 创建时间
     */
    @Schema(description = "用户创建时间")
    private Date addtime;
    /**
     * 盐
     */
    @Schema(description = "用户随机盐")
    private String salt;
    @Schema(description = "用户电话")
    private String phone;
    @Schema(description = "图片")
    private String img;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}